package com.fowo.api.documentCirculation.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 数据事务映射表 导入导出辅助模型 */
@Data
public class DataTaskMappingExcelPo {

  @ExcelProperty(value = "所属数据事务分支")
  private String branchIdFromTable;

  @ExcelIgnore
  @ExcelProperty(value = "所属数据事务分支")
  private Long branchId;

  @NotBlank(message = "字段描述不能为空")
  @Size(max = 255, message = "字段描述长度不能超过20")
  @ExcelProperty(value = "*字段描述")
  private String fieldDescription;

  @NotBlank(message = "列类型不能为空")
  @Size(max = 50, message = "列类型长度不能超过20")
  @ExcelProperty(value = "*列类型")
  private String type;

  @Size(max = 50, message = "列类型值长度不能超过20")
  @ExcelProperty(value = "列类型值")
  private String typeValue;

  @NotBlank(message = "源表字段不能为空")
  @Size(max = 50, message = "源表字段长度不能超过20")
  @ExcelProperty(value = "*源表字段")
  private String fromField;

  @NotBlank(message = "目标表字段不能为空")
  @Size(max = 50, message = "目标表字段长度不能超过20")
  @ExcelProperty(value = "*目标表字段")
  private String toField;

  @NotBlank(message = "显示标识不能为空")
  @Size(max = 50, message = "显示标识长度不能超过20")
  @ExcelProperty(value = "*显示标识")
  private String showLabel;

  @NotNull(message = "排序不能为空")
  @Size(max = 50, message = "排序长度不能超过20")
  @ExcelProperty(value = "*排序")
  private Integer sortPosition;
}
